#ifndef FFMPEGEXTRA_DOWNLOADER_HPP
#define FFMPEGEXTRA_DOWNLOADER_HPP

#include <string>
#include <mutex>
namespace Eyer {
    class Downloader {
    public:
        Downloader(const std::string & _path);
        ~Downloader();
        int Open();
        int Read(uint8_t *buf, int size, int pos);
        int Close();

    public:
        std::string path = "";
        std::mutex mut;

        uint8_t * buf = nullptr;
        int bufLen = 0;
    };
}

#endif //FFMPEGEXTRA_DOWNLOADER_HPP
